
package net.lab0.electron.map;


public class MapLayer<T extends MapElement>
{
	private String	name;
	private boolean	visible;
	private boolean	selectable;
	private QuadTreeRoot<T> tree;
	
	public MapLayer(String name, boolean visible, boolean selectable, QuadTreeRoot<T> tree)
	{
		super();
		this.name = name;
		this.visible = visible;
		this.selectable = selectable;
		this.tree = tree;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public boolean isVisible()
	{
		return visible;
	}
	
	public void setVisible(boolean visible)
	{
		this.visible = visible;
	}
	
	public boolean isSelectable()
	{
		return selectable;
	}
	
	public void setSelectable(boolean selectable)
	{
		this.selectable = selectable;
	}

	public QuadTreeRoot<T> getTree()
	{
		return tree;
	}
	
}
